<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}"  placeholder="房间名字 最长17个汉字，1个汉字相当于2个字符">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Cover_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-cover_img" data-rule="required" class="form-control" name="row[cover_img]" type="text" value="{$row.cover_img_media_id}"  placeholder="填写mediaID，直播间背景图，图片规则：建议像素1080*1920，大小不超过2M">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Share_img')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-share_img" data-rule="required" class="form-control" name="row[share_img]" type="text" value="{$row.share_img_media_id}" placeholder="填写mediaID，直播间分享图，图片规则：建议像素800*640，大小不超过1M">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:$row.start_time?datetime($row.start_time):''}" placeholder="直播计划开始时间，1.开播时间需在当前时间10min后，2.开始时间不能在6个月后">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:$row.end_time?datetime($row.end_time):''}"  placeholder="直播计划结束时间，1.开播时间和结束时间间隔不得短于30min，不得超过12小时">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anchor_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-anchor_name" data-rule="required" class="form-control" name="row[anchor_name]" type="text" value="{$row.anchor_name|htmlentities}"  placeholder="主播昵称 最长15个汉字，1个汉字相当于2个字符">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Anchor_wechat')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-anchor_wechat" data-rule="required" class="form-control" name="row[anchor_wechat]" type="text" value="{$row.anchor_wechat|htmlentities}"  placeholder="主播微信号，需通过实名认证，否则将报错">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
                {foreach name="typeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Screen_type')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-screen_type" data-rule="required" class="form-control selectpicker" name="row[screen_type]">
                {foreach name="screenTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.screen_type"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Close_like')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-close_like" data-rule="required" class="form-control selectpicker" name="row[close_like]">
                {foreach name="closeLikeList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.close_like"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Close_goods')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-close_goods" data-rule="required" class="form-control selectpicker" name="row[close_goods]">
                {foreach name="closeGoodsList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.close_goods"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Close_comment')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-close_comment" data-rule="required" class="form-control selectpicker" name="row[close_comment]">
                {foreach name="closeCommentList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.close_comment"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
